<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script
	src="${pageContext.request.contextPath}/dwz/js/dwz.validate.method.js"
	type="text/javascript"></script>
<script type="text/javascript">
$().ready(function(){
	var attEqu=document.getElementById("attEqu_");
	var telEqu=document.getElementById("telEqu_");
	
	if(attEqu.checked){
		document.getElementById("hiddendiv").style.display="";
	}
	if(telEqu.checked){
		document.getElementById("hiddendiv").style.display="none"
	} 
});
function doncheck(){
	var attEqu=document.getElementById("attEqu_");
	var telEqu=document.getElementById("telEqu_");
	
	if(attEqu.checked){
		document.getElementById("hiddendiv").style.display=""
	}
	if(telEqu.checked){
		document.getElementById("hiddendiv").style.display="none"
	} //,$.pdialog.close('editEqu')
}
</script> 
<div class="pageContent">
	<form id="myForms" method="post" action="equ_editEqu.action" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="56">
			<div class="unit">
				<label>所属学校：</label>
				<input id="sclName" name="sclName" type="text" value="${equipment.hsSchoolInfo.sclName }" readonly="readonly" />
				<input id="sclId" name="sclId" type="hidden" value="${equipment.hsSchoolInfo.sclId }"/>
			</div>
			<div class="unit">
				<label>设备流水号：</label>
				<input name="equNo" type="text"  class="digits" value="${equipment.equNo }" readonly="readonly"/>
			</div> 
			<div class="unit">
				<label>设备类型：</label>
				<input type="radio" id="attEqu_" name="equType" value="0" ${equipment.equType==0?"checked":"" } onclick="doncheck()" />考勤设备
				<input type="radio" id="telEqu_" name="equType" value="1" ${equipment.equType==1?"checked":"" } onclick="doncheck()" />亲情电话
			</div>
			<div class="unit">
				<label>设备状态：</label>
				<select name="equStausFlag" class="combox required">
					<%-- <option value="" ${equipment.equStausFlag eq ""?"selected":"" }>-- 请选择 --</option> --%>
					<option value="0" ${equipment.equStausFlag eq "0"?"selected":"" }>停用</option>
					<option value="1" ${equipment.equStausFlag eq "1"?"selected":"" }>正常</option>
				</select>
			</div>	
			<div id="hiddendiv">
			<div class="unit" id="attType_">
				<label>考勤类型：</label>
				<select id="equAttType" name="equAttType" class="combox">
					<option value="">-- 请选择 --</option>
					<option value="0" ${equipment.equAttType eq "0"?"selected":"" }>校门口考勤</option>
					<option value="1" ${equipment.equAttType eq "1"?"selected":"" }>宿舍考勤</option>
					<option value="2" ${equipment.equAttType eq "2"?"selected":"" }>请假考勤</option>
					<option value="3" ${equipment.equAttType eq "3"?"selected":"" }>教师考勤</option>
					<option value="4" ${equipment.equAttType eq "4"?"selected":"" }>教学区普通刷卡</option>
				</select>
			</div>
			<div class="unit" id="inoutType_">
				<label>考勤进出类型：</label>
				<select name="equAttInoutType" id="equAttInoutType" class="combox">
					<option value="">-- 请选择 --</option>
					<option value="0" ${equipment.equAttInoutType eq "0"?"selected":"" }>未区分</option>
					<option value="1" ${equipment.equAttInoutType eq "1"?"selected":"" }>进</option>
					<option value="2" ${equipment.equAttInoutType eq "2"?"selected":"" }>出</option>
				</select>
			</div>
			<div class="unit" id="equName_">
				<label>硬件类型：</label>
				<select name="equNameDc" class="combox" >
					<option value="" ${equipment.equNameDc eq ""?"selected":"" }>-- 请选择 --</option>
					<option value="0" ${equipment.equNameDc eq "0"?"selected":"" }>未区分</option>
					<option value="1" ${equipment.equNameDc eq "1"?"selected":"" }>数据网关</option>
					<option value="2" ${equipment.equNameDc eq "2"?"selected":"" }>刷卡端</option>
					<option value="3" ${equipment.equNameDc eq "3"?"selected":"" }>车载机</option>
				</select>
			</div>
			</div>
			<%-- 
			<input name="equ.relationStatusFlag" type="hidden" value="1"/>
			<div class="unit">
				<label>关联关系状态：</label>
				<select name="equ.relationStatusFlag" class="required">
					<option value="" ${equipment.relationStatusFlag eq ""?"selected":"" }>-- 请选择 --</option>
					<option value="0" ${equipment.relationStatusFlag eq "0"?"selected":"" }>废弃</option>
					<option value="1" ${equipment.relationStatusFlag eq "1"?"selected":"" }>正常</option>
				</select>
			</div> --%>
			<!-- <div class="unit">
				<label>设备安装时间：</label>
				<input type="text" name="equ.equStartDate" class="date" dateFmt="yyyyMMdd" readonly="true"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
				<span class="info">yyyyMMdd</span>
			</div> -->
			<div class="unit">
				<label>服务器端IP：</label>
				<input type="text"  name="equSip" class="isIp" value="${equipment.equSip }" maxlength="20"/>
				<span class="inputInfo">* 注:格式 如:192.168.1.100</span>
			</div>
			<div class="unit">
				<label>服务器端口：</label>
				<input type="text"  name="equSport" value="${equipment.equSport}" class="digits" maxlength="8"/>
				<span class="inputInfo">* 注: 数字</span>
			</div>
			<div class="unit">
				<label>通讯用APN卡号码：</label>
				<input type="text"  name="equApnSim" value="${equipment.equApnSim }" class="digits" maxlength="20"/>
				<span class="inputInfo">* 注: 刷卡端无须输入SIM卡</span>
			</div>
			<div class="unit">
				<label>设备软件版本号：</label>
				<input name="equSoftVer" class="isCN" maxlength="20" type="text"  value="${equipment.equSoftVer }"/>
				<span class="inputInfo">* 注: 除汉字、特殊符号外</span>
			</div>
			<div class="unit">
				<label>设备硬件版本号：</label>
				<input name="equHardVer" class="isCN" maxlength="20" type="text"  value="${equipment.equHardVer }" />
				<span class="inputInfo">* 注: 除汉字、特殊符号外</span>
			</div>
			<div class="unit">
				<label>设备描述：</label>
				<input name="equDescrip" type="text" class="stringLength"  maxlength="200" value="${equipment.equDescrip }" />
			</div>
			<div class="unit">
				<label>备注：</label>
				<!-- <input name="equ.remark" type="text" size="30"  /> -->
				<textarea name="remark" rows="3" cols="35" class="stringLength" maxlength="200">${equipment.remark }</textarea>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
